package com.xbongbong.pro.serviceregistration.pojo.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.department.pojo.DepartmentUserPojo;
import com.xbongbong.pro.serviceregistration.pojo.ParamPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author 吴峰
 * @date 2021/03/03 20:37
 */
@Getter
@Setter
@ToString
public class ServiceRegistrationUpdateDTO extends BaseDTO {


    private static final long serialVersionUID = 2032488273940411225L;
    /**
     * 服务id
     */
    private Long id;


    /**
     *  1:http；2：gateway
     */
    private Integer type;

    private String name;

    /**
     * 0:私有；1：平台服务
     */
    private Integer platFormService;
    /**
     * GET/POST请求
     */
    private String requestMethod;

    /**
     * 请求头
     */
    private JSONObject requestHeader;

    /**
     * 是否由服务器代理发起请求
     */
    private Integer proxyRequest;
    /**
     * 管理员
     */
    private List<DepartmentUserPojo> admin;

    /**
     * 使用人员
     */
    private List<DepartmentUserPojo> user;

    /**
     * 完整url地址
     */
    private String url;

    private Integer signatureFlag;

    private String signature;

    private Integer hmacSecretFlag;

    private String hmacSecret;

    /**
     * 参数列表
     */
    private List<ParamPojo> param;

    private String memo;
}
